package com.topcheer.common.datasource.dynamic;


import javax.sql.DataSource;

/**
 * @ClassName: AbstractDataSourceHandler
 * @Author: Lix
 * @Version: 1.0
 * @Date: 2019/12/26 14:02
 * @Description: TODO
 **/
public interface DataSourceBuilder {

    /**
     * 生成新的动态数据源
     * @param dataSourceKey 数据源key
     * @param dataSourceType 数据源type
     * @return DataSource
     */
    DataSource builder(String dataSourceKey, String dataSourceType);

}
